package com.jiukuaidao.zhulin.api;

import com.jiukuaidao.library.net.ApiBaseParamAbstract;
import com.jiukuaidao.library.net.MyRetroCallBack;
import com.jiukuaidao.library.net.RootResult;
import com.jiukuaidao.zhulin.entity.ApiOrderDetailInfo;
import com.jiukuaidao.zhulin.util.NetUtil;
import com.jiukuaidao.zhulin.util.RetrofitUtil;

import retrofit2.Call;

/**
 * Author : BinarySatan
 * Date : 2016/6/3
 * Description : 订单详情
 */
public class ApiOrderDetail extends ApiBaseParamAbstract {
    private String mOrderNumber;

    public ApiOrderDetail(String orderNumber, MyRetroCallBack myRetroCallBack) {
        super(myRetroCallBack);
        mOrderNumber = orderNumber;
    }

    @Override
    public Call<RootResult<ApiOrderDetailInfo>> getCall() {
        return RetrofitUtil.getApiManager(mParams, NetUtil.getResHeaderListener()).getOrderDetail(mOrderNumber);
    }
}
